#include<iostream>
#include<fstream>
#include <stdlib.h>
#include <string.h>
using namespace std;


void main()
{
	char ins1[32]={0};
	char ins2[32]={0};
	char ins3[32]={0};
	ifstream ins;
	ins.open("pm.txt");
	ins>>ins1;
	ins>>ins2;
	ins>>ins3;

	ins.close();
	cout<<ins1<<endl;
	cout<<ins2<<endl;
	cout<<ins3<<endl;
	
	// str to int
	int ins1i[32]={0};
	for(int x=0;x<(sizeof(ins1));x++)
	{
		
		ins1i[x]=atoi(ins1[x]);
		cout<<ins1i[x];
	}



	//Instruction 1


	//cout<<ins1i[0]<<endl;
	
	if (ins1i[0]==0)
	{ 
		
		//32 bit 
		//Now to find which instruction next 5 bits
		//cout<<ins1<<endl;

	}
	else if (ins1i[1]==1)
	{
		//16 bit
	}
	else { //Unknown Ins 
		cout<<"error"<<endl;
	}
	
	system("PAUSE");
}